import { request } from '@/utils/requestUtil'

export function createCart(data) {
	return request({
		method: 'POST',
		url: '/admin/cart/create',
		data: data
	})
}

export function updateNumberCart(data) {
	return request({
		method: 'POST',
		url: '/admin/cart/updateNumber',
		data: data
	})
}

export function deleteCart(data) {
	return request({
		method: 'POST',
		url: '/admin/cart/delete',
		data: data
	})
}

export function clearCart() {
	return request({
		method: 'POST',
		url: '/admin/cart/clear'
	})
}

export function listCart() {
	return request({
		method: 'GET',
		url: '/admin/cart/list'
	})
}
